<?php

namespace app\api\controller\jumpjump;

use app\admin\model\JumpjumpAcc;
use app\common\controller\Api;
use think\Request;
use app\admin\model\Xcx;

/**
 * 蹦蹦jump数据接口
 */
class Config extends Api
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function get_info($v)
    {
        header('Access-Control-Allow-Origin:*');

        $config = array(
            'money' => 300, // 金币
            'hinderRate' => 0.3, // 障碍物出现概率
            'coinRate' => 0.1, // 金币出现概率
            'share_flag' => false, // 分享flag
            'bannerAdId' => 'adunit-d20e1c7f043191c8', // banner广告id
            'videoAdId' => 'adunit-31ba2ee06b88df67', // 视频广告id
            'moreAppId' => 'wx3d3d7bd50ac38ff1', // 更多好玩跳转小程序appid
            'shareTitle' => '快来和我一起蹦蹦Jump吧!', // 分享标题
            'shareImgUrl' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jumpjump/share/1.jpg', // 分享图片
            'stairDownSecond' => 3, // 初始台阶掉落时间
            'gameOverSecond' => 0.33, // 台阶掉落最小时间
        );

        return json($config);
    }
}
